<template>
  <div>
    login page
    <button @click="handleBtnLogin">登录</button>
  </div>
</template>

<script>
import { login } from '@/apis/user'
export default {
  data() { 
    return {
      username: '红娘1',
      password: '111111'
    }
  },
  mounted() { 
  },
  methods: {
    // this.$store.dispatch('user/login',this.form)
    
    handleBtnLogin() { 

      this.$store.dispatch('user/login', {
        username: this.username,
        password: this.password
      })
    },
    
  }
}
</script>

<style lang="scss" scoped></style>
